/*
 * @Author: your name
 * @Date: 2021-12-27 04:14:43
 * @LastEditTime: 2022-04-10 22:03:31
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /visualNotes/src/service/index.ts
 */

//第一步，引入 Web SDK，
import tcb from "@cloudbase/js-sdk";

export const SUCCESS_CODE = 0;
export const ERROR_CODE = -1;
//第二步，初始化
export const app = tcb.init({
  env: "hhd0730-4g09yrrh5919aa7b",
});
export const auth = app.auth({
  persistence: "local",
});
//获得数据库引用
export const db = app.database();
export const _c = db.command;

export * as login from "./login";
export * as users from "./users";
export * as payloads from "./payloads";


